package com.gsafety.wellsfort.dao.knowledge;

import com.gsafety.wellsfort.domain.model.knowledge.AnswerOption;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AnswerOptionDAO {
    int deleteByPrimaryKey(Integer id);

    int deleteByQuestionId(Integer questionId);

    int insert(AnswerOption record);

    int insertSelective(AnswerOption record);

    AnswerOption selectByPrimaryKey(Integer id);

    List<AnswerOption> selectByQuestionId(Integer questionId);

    List<AnswerOption> selectRightByQuestionId(Integer questionId);

    List<AnswerOption> selectByOptionIds(@Param("optionIds") String[] optionIds);

    int updateByPrimaryKeySelective(AnswerOption record);

    int updateByPrimaryKey(AnswerOption record);
}